import request from '/@/utils/request';

// 查询道闸的进出记录列表
export function listRecord(query?: Object) {
  return request({
    url: '/module/barrier/gate/record/list',
    method: 'get',
    params: query
  })
}

// 查询道闸的进出记录详细
export function getRecord(id?: number) {
  return request({
    url: '/module/barrier/gate/record/' + id,
    method: 'get'
  })
}

// 新增道闸的进出记录
export function addRecord(data?: Object) {
  return request({
    url: '/module/barrier/gate/record',
    method: 'post',
    data
  })
}

// 修改道闸的进出记录
export function updateRecord(data?: Object) {
  return request({
    url: '/module/barrier/gate/record',
    method: 'put',
    data
  })
}

// 删除道闸的进出记录
export function delRecord(id?: number) {
  return request({
    url: '/module/barrier/gate/record/' + id,
    method: 'delete'
  })
}

// 导出道闸的进出记录
export function exportRecord(query?: Object) {
  return request({
    url: '/module/barrier/gate/record/export',
    method: 'get',
    params: query
  })
}
